package cn.tedu.tmall.front.mall.service;

import cn.tedu.tamll.common.pojo.CurrentUser;
import cn.tedu.tamll.common.pojo.vo.PageData;
import cn.tedu.tmall.front.mall.pojo.param.OrderAddParam;
import cn.tedu.tmall.front.mall.pojo.vo.OrderDetailVO;
import cn.tedu.tmall.front.mall.pojo.vo.OrderVO;
import org.springframework.transaction.annotation.Transactional;

public interface IOrderService {
    @Transactional
    String createOrder(CurrentUser user, OrderAddParam orderAddParam);

    PageData<OrderVO> list(CurrentUser user, Integer pageSize, Integer pageNum);

    OrderDetailVO detail(CurrentUser user, String orderNo);
}
